package com.taotao.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.taotao.service.ItemParamItemService;

@Controller
public class ItemParamItemController {
	@Autowired
	private ItemParamItemService itemParamService;
	
	@RequestMapping("/item/paramData/{itemId}")
	public String getItemParamData(@PathVariable long itemId,Map<String,Object> map){
		String itemParam = itemParamService.getItemParamItemById(itemId);
		map.put("itemParam", itemParam);
		return "item-param-item";
	}
}
